package com.example.service;

import org.springframework.stereotype.Service;

@Service("orderService")
public class OrderServiceImpl implements OrderService {

    @Override
    public void add(String pname, int number) {
        System.out.println("执行添加商品: " + pname + ", 数量: " + number);
    }

    @Override
    public void delete(String pname) {
        System.out.println("执行删除商品: " + pname);
    }

    @Override
    public int find(String pname) {
        System.out.println("执行查询商品: " + pname);
        // 模拟返回查询结果
        return 5;
    }
}